package cn.itcast.nems.journal.enumeration;

import cn.itcast.ic.common.exception.v2.bean.BizErrorBody;
import cn.itcast.ic.common.exception.v2.bean.BizStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum JournalFinalErrorBodyEnum implements BizErrorBody {
    
    JOURNAL_ID_NOT_NULL(BizStatusEnum.BAD_REQUEST, "凭单ID非空！"),
    JOURNAL_STATE_NOT_DRAFT(BizStatusEnum.BAD_REQUEST, "只能编辑草稿状态凭单！"),
    CLAZZ_ID_ILLEGAL_ARGUMENT(BizStatusEnum.BAD_REQUEST, "班级ID不能为空！"),
    CLAZZ_NOT_FOUND(BizStatusEnum.BAD_REQUEST, "找不到对应的班级，请检查班级是否准确！"),
    CLAZZ_STUDENT_RECORD_EMPTY(BizStatusEnum.BAD_REQUEST, "当前班级没有在籍学员，无需办理结课！"),
    STUDENT_START_DATE_OR_FINALDATE_INVALID(BizStatusEnum.BAD_REQUEST, "结课日期【%s】不能早于班级开班日期【%s】，请确认后再创新办理结课！"),
    ;
    
    public final BizStatusEnum status;
    public final String message;
    
}
